package loaderData
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IOErrorEvent;
	import flash.events.ProgressEvent;

	public class BaseLoader extends EventDispatcher
	{
		protected var objData:Object;
		protected var bytesLoadNum:uint;
		protected var bytesTotalNum:uint;
		protected var loaderUrl:String;
		
		public function BaseLoader()
		{
		}
		
		public function load(url:String):void
		{
			
		}
		
		protected function onCompleteEvent(event:Event):void
		{
			this.dispatchEvent(event);
		}
		
		protected function onIoErrorEvent(event:IOErrorEvent):void
		{
			this.dispatchEvent(event);
		}
		
		protected function onProgressEvent(event:ProgressEvent):void
		{
			this.dispatchEvent(event);
		}
		
		protected function onOpen(event:Event):void
		{
			this.dispatchEvent(event);
		}
		
		public function clear():void
		{
			loaderUrl = null;
			objData = null;
		}

		public function get loadUrl():String
		{
			return loaderUrl;
		}

		public function get data():Object
		{
			return objData;
		}

		public function get bytesLoaded():uint
		{
			return bytesLoadNum;
		}

		public function get bytesTotal():uint
		{
			return bytesTotalNum;
		}


	}
}